/*
 * 项   目：spring-boot-demo
 * 作   者：罗毅（ymluo） 
 * 邮   箱：ymluo@iflytek.com
 * 创建时间：2017/11/15 9:26
 */
package com.roin.learn.springboot.demo.controller;

import com.roin.learn.springboot.demo.SystemConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {
    @Autowired
    SystemConfig systemConfig;

    @RequestMapping(value = "/")
    String index(Model model) {
        model.addAttribute("sysinfo", systemConfig);
        return "index";
    }
}
